import request from '../utils/request'
// 全部权限接口
export const getAllMenuListApi = () => request({ url: '/system/menu/tree' })
// 新增权限菜单
export const addMenuApi = (data) => request({ url: '/system/menu/add', method: 'post', data })
// 删除
export const deleteMenuApi = (id) => request({ url: `/system/menu/delete/${id}`, method: 'DELETE' })
// 编辑
export const geteMenuInfoApi = (id) => request({ url: `/system/menu/edit/${id}` })
// 更新
export const updateMenuInfoApi = (id, data) => request({ url: `/system/menu/update/${id}`, method: 'put', data })
// 导出
export const exportApi = () => request({ url: '/system/menu/excel', method: 'post', responseType: 'blob' })
